package com.andy.feign;

import com.andy.customerService.entity.Road;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestParam;

/**
 * @author Andy
 * @date 2022/2/24 15:33
 */
@FeignClient(name = "admin")
public interface RoadFeign {

    /**
     * 根据角色获取线路
     * @param role
     */
    @GetMapping("/road/getRoad")
    Road getRoadByRole(@RequestParam("role") String role);

 }
